# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=elite-proxy-finder
pkgver=51.1ced3be
pkgrel=5
groups=('blackarch' 'blackarch-proxy')
pkgdesc='Finds public elite anonymity proxies and concurrently tests them.'
arch=('any')
url='https://github.com/DanMcInerney/elite-proxy-finder'
license=('custom')
depends=('python2' 'python2-gevent' 'python2-requests' 'python2-beautifulsoup3'
         'python2-setuptools')
makedepends=('git')
source=("git+https://github.com/DanMcInerney/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

